package org.devops

// 构建类型
def Build(buildType,buildShell){
	def buildTools = ["mvn":"m2","ant":"ANT","gradle":"GRADLE","npm":"NJ"]

	println("构建类型 ${buildType}")
	builHome=tool buildTools[buildType]

	sh "${builHome}/bin/${buildType} ${buildShell}"
}